<?php if ( $refundList->num_rows() > 0 ) : ?>
<?php foreach ($refundList->result() as $value) : ?>
    <dd>
        <div class="lert-name">
            <h6 class="flex">
                <p class="flex-1">
                    <i class="iconfont">&#xe631;</i> <?php echo $value->alias_name; ?>
                </p>
                <div class="lert-state">
                    <?php if ( $value->status == 1 && $value->flag == 1 ): ?>
                        退款中
                    <?php elseif ($value->status == 2 && $value->flag == 2): ?>
                        退款成功
                    <?php elseif ($value->status == 3 && $value->flag == 1): ?>
                        拒绝退款
                    <?php else:?>
                        其它
                    <?php endif; ?>
                </div>
            </h6>
            <div class="lert-test flex">
                <a href="<?php echo site_url('home/refund/tourismRefundDetail/'.$value->refund_id) ?>" class="flex-1">
                    <div class="flex">
                        <img src="<?php echo $this->config->show_image_url($value->goods_image, '300-300'); ?>">
                        <div class="lert-para flex-1">
                            <p><?php echo $value->goods_name; ?></p>
                            <?php if (!empty($value->attribute_value)) : ?>
                                <ul class="am-cf">
                                    <?php $attribute =explode(',',$value->attribute_value)?>
                                    <?php foreach($attribute as $val): ?>
                                        <li><?php echo $val ?></li>
                                    <?php endforeach; ?>
                                </ul>
                            <?php endif; ?>
                        </div>
                    </div>
                </a>
                <div class="lert-info">
                    <p>￥<?php echo $value->pay_amount; ?></p>
                    <p class="lert-num">x<?php echo $value->number; ?></p>
                </div>
            </div>
        </div>
        <div class="lert-money flex">
            <div class="lert-left flex-1">交易金额：￥<?php echo $value->pay_amount; ?></div>
            <div class="lert-right">退款金额：￥<?php echo bcsub(bcmul($value->pay_amount, $value->number, 2), $value->counter_fee, 2); ?></div>
        </div>
    </dd>
<?php endforeach; ?>
<?php endif; ?>